class_name StatusTooltip
extends HBoxContainer

@export var status: Status: set = _set_status

@onready var icon: TextureRect = $Icon
@onready var label: RichTextLabel = $Label

func _set_status(value: Status) -> void:
	status = value
	if not is_node_ready():
		await ready
	icon.texture = status.icon
	label.text = status.get_tooltip()
